/*
 * @Author: 吴让坤
 * @Date: 2023-03-17 23:35:48
 * @LastEditTime: 2023-05-18 11:57:52
 * @Description: 描述
 */
import { createRouter, createWebHistory ,createWebHashHistory } from 'vue-router'
import { Pages } from '@/utils/router'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../layout/layout.vue'),
      children: [
        {
          path: Pages.首页,
          name: 'home',
          meta: {
            lable: '登录',
            icon: ''
          },
          component: () => import('../views/home/index.vue'),
        }]
    },
  ]
})

export default router
